package com.examples.database;


import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class Appointment extends SQLiteOpenHelper {
 
	private static final String DATABASE_NAME = "manager";
    private static final int DATABASE_VERSION = 2;
    private static final String TABLE_CREATE ="create table details (_id INTEGER primary key autoincrement, "+"agenda Text not null,person TEXT, description BLOB, date TEXT not null, time TEXT not null, reminderdate TEXT,remindertime TEXT);";
    public Appointment(Context context) {
        super(context, DATABASE_NAME, null, DATABASE_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
       // db.execSQL(TABLE_CREATE);
    }
    
    @Override
	public void onUpgrade(SQLiteDatabase database, int oldVersion,
			int newVersion) {
		Log.w(Appointment.class.getName(),
				"Upgrading database from version " + oldVersion + " to "
						+ newVersion + ", which will destroy all old data");
		database.execSQL("DROP TABLE IF EXISTS todo");
		onCreate(database);
	}
    
    
}